package com.lx.note.entity;



import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.hibernate.validator.constraints.Length;

import java.io.Serializable;

/**
 * User: Administrator
 * Date: 2018/05/30 下午 10:16
 */
public class UserRegisterDTO implements Serializable {

    private static final long serialVersionUID = 476228627834632277L;
    private String id;
    @Length(max = 3, min=2, message = "莫瞎搞")
    private String name;
    private String password;
    private String nick;
    private String token;

    public UserRegisterDTO() {
    }

    public UserRegisterDTO(String id, String name, String password, String nick, String token) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.nick = nick;
        this.token = token;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
    }
}
